package cn.buyclss.backend.entity.po.shop;

import java.util.Date;

/**
 * @author: Cecurio
 * @create: 2019-03-19 21:57
 **/
public class GoodsPO {

    /**
     * 商品编号
     */
    private Integer id;

    /**
     * 商品另起的编号 无规则，随机生成，防止无良爬取
     */
    private String alias;

    /**
     * 商品所属店铺
     */
    private Integer shopId;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 商品表述
     */
    private String description;

    /**
     * 图片列表 图片URL列表，以逗号分隔
     */
    private String imgList;

    /**
     * 库存数
     */
    private Integer stockNum;

    /**
     * 商品价格 取该商品所有规格中最便宜的一种
     */
    private Long price;

    /**
     * 促销价格
     */
    private Integer promotionPrice;

    /**
     * 商品状态 1:下架2:上架3:违规下架
     */
    private Integer goodsStatus;

    /**
     * 商品种类
     */
    private GoodsCategoryPO goodsCategory;

    /**
     * 商家给的编号 商家内边编号
     */
    private String code;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getImgList() {
        return imgList;
    }

    public void setImgList(String imgList) {
        this.imgList = imgList;
    }

    public Integer getStockNum() {
        return stockNum;
    }

    public void setStockNum(Integer stockNum) {
        this.stockNum = stockNum;
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    public Integer getPromotionPrice() {
        return promotionPrice;
    }

    public void setPromotionPrice(Integer promotionPrice) {
        this.promotionPrice = promotionPrice;
    }

    public Integer getGoodsStatus() {
        return goodsStatus;
    }

    public void setGoodsStatus(Integer goodsStatus) {
        this.goodsStatus = goodsStatus;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public GoodsCategoryPO getGoodsCategory() {
        return goodsCategory;
    }

    public void setGoodsCategory(GoodsCategoryPO goodsCategory) {
        this.goodsCategory = goodsCategory;
    }
}
